package cn.edu.xmu.oomall.customer.model.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * @author Jiazhe Yuan
 * @date 2021-12-14 12:27:17
 */
public class SimpleCartRetVo {
    @NotNull(message = "购物车不能为空")
    private Long id;

    @NotNull(message = "货品数量不能为空")
    @Min(1)
    private Long quantity;

    @NotNull(message = "商品价格")
    private Long price;
}
